package entitys;

import java.io.Serializable;

public class Product implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2401020578265533352L;
	int productid;
	String name;
	String description;
	String picture;
	float price;
public Product(String name, String desc, String pic,float price)
{
	this.name=name;
	this.description=desc;
	this.price=price;
	this.picture=pic;
}

public Product(String name,int id,String pic)
{
	this.name=name;
	this.productid=id;
	this.picture=pic;
}

	public Product(String name) {
	// TODO Auto-generated constructor stub
		this.name=name;
		this.productid=0;
}

	public int getID()
	{
		return productid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPicturen() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}
	
	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}
	@Override
	public String toString()
	{
		return "#"+productid+" "+name;
		
	}
}
